import request from '@/utils/request'

export function getStatsApi(params) {
  return request({
    url: '/api/task-service/task/userWork',
    params
  })
}

export function getOrderApi(params) {
  return request({
    url: '/api/order-service/report/orderCount',
    params
  })
}

export function getIncomeApi(params) {
  return request({
    url: '/api/order-service/report/orderAmount',
    params
  })
}

export function getHotlistApi(start, end) {
  return request({
    url: `/api/order-service/report/skuTop/10/${start}/${end}`
  })
}

export function getSaleDataApi(data) {
  return request({
    url: `/api/order-service/report/amountCollect/${data.num}/${data.start}/${data.end}`
  })
}

export function getSaleDataApi(data) {
  return request({
    url: `/api/order-service/report/amountCollect/${data.num}/${data.start}/${data.end}`
  })
}
